# set CHARON_CC as appropriate, either:
#  - the C compiler for compiling Charon to run on host machine (to compile tests), or
#  - the C compiler for compiling Charon to run on target machine (to run tests)

CHARON_CC ?= $(CC)

all: charon_run

charon_run: getopts_.c getopts_.h jsmn.h jsmn.c types.h charon_run.c Makefile 
	$(CHARON_CC) -O2 -Wall -Wno-unused-function jsmn.c charon_run.c -o charon_run

charon_run2: getopts_.c getopts_.h jsmn.h jsmn.c types.h charon_run.c Makefile 
	$(CHARON_CC) -O2 -Wall -Wno-unused-function jsmn.c charon_run.c -S

clean:
	rm -rf charon_run
	rm -rf *~
